/*
 * File Name:               XHistoryData.cs
 * 
 * Description:             普通类
 * Author:                  lisiyu <576603306@qq.com>
 * Create Date:             2017/03/07
 */

public class XHistoryData <T>
{
    private T mCurrentData;
    private T mNextData;

    public XHistoryData(T current, T next)
    {
        mCurrentData = current;
        mNextData = next;
    }

    public void onUpdate()
    {
        mCurrentData = mNextData;
    }
    public void setNextData(T nextData)
    {
        mNextData = nextData;
    }

    public T getCurrentData()
    {
        return mCurrentData;
    }
}
